package com.tql.kingdee.response;

public class CommonResponse<T> {
    private int flag;
    private ErrorInfo errorInfo;
    private T data;

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public ErrorInfo getErrorInfo() {
        return errorInfo;
    }

    public void setErrorInfo(ErrorInfo errorInfo) {
        this.errorInfo = errorInfo;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }


    @Override
    public String toString() {
        return "CommonResponse{" +
                "flag=" + flag +
                ", errorInfo=" + errorInfo +
                ", data=" + data.toString() +
                '}';
    }
}
